-
Notifications
You must be signed in to change notification settings - Fork 19
Add linux compatibility articles #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Added section and overview page
Deploying wiki with
|
| Latest commit: |
b701420
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://acbcb545.wiki-5tv.pages.dev |
| Branch Preview URL: | https://linux-usage.wiki-5tv.pages.dev |
|
You should also add an entry to that table for the engine tools (particle editor, material editor, etc.), since those are natively supported. |
Included more info on running under wine, and also expanded page to include HLMV and Faceposer
Added row about ps1 scripts, removed a bunch of useless spaces, restructured note on tools page
Maybe shouldnt be writing wiki articles whilst sleep deprived and while burnt out from school
| | vbsp/vvis/vrad | Native | Only for use in shell scripts/wrappers. When running Hammer under Wine, make sure to point to the Win64 versions for compatibility. | | ||
| | `.ps1` scripts | Native | Requires [Powershell](https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-linux?view=powershell-7.5) to be installed. | | ||
| | All engine tools (particle editor, material editor, etc)| Native | None | | ||
| | SDK launcher | Native | Must use version in `Portal 2 Community Edition/bin/linux64`, launching from Steam will launch the .exe version. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this actually the case? ref'ing craftable's comment seems like not, but I'm unable to test it
| This process uses [Wine](https://www.winehq.org/), a program which acts as a translation layer that converts Windows calls into Linux calls, without the need for emulation. Wine can be installed using your distro's appropriate package manager, typically under the package name `wine`, or from Wine's website. | ||
|
|
||
| >[!CAUTION] | ||
| >Since Wine 11, both the 32 and 64 bit packages of wine have been combined into one, so you only need to install the `wine` package for the tools to run properly. Installing the seperate outdated 32 and 64 bit packages is not recommended and will likely cause issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assumes the user is running either Debian or a derivative, on other distros (Fedora, Arch, Alpine) this is not the case.
| If using a Virtual Machine or emulator such as WinBoat, the tools should work as-is, apart from any configuration file changes. | ||
|
|
||
| ## Running Windows Tools | ||
| This section uses Hammer as an example, but applies also to HLMV and Faceposer. Just replace all instaces of `hammer.exe` with the appropriate executable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo, should be instances
|
|
||
| ### Creating a Shell script | ||
| For ease of use, you may find it useful to create a Shell (`.sh`) script that automatically runs Hammer under Wine. Here is an example of a script for Portal 2: Community Edition named `hammer.sh` located in `/bin/linux64/`: | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the shebang (#!/usr/bin/env sh) is missing here
|
|
||
| For HLMV/Faceposer or if you only have one config for Hammer, first try making sure that the path specified in your `-game` option exists and that a `gameinfo.txt` file exsits. If it does exist but `gameinfo.txt` still cannot be found, try using an absolute path. This should fix most cases of broken paths. If this does not fix your issue, navigate to `<game>/hammer/cfg` and either delete or rename `gameconfig.txt`. This will recreate your game configuration file next time you start Hammer, and will likely fix all issues with broken paths. Alternatively, you can manually edit the file to alter the paths to their correct location. | ||
| >[!NOTE] | ||
| >Wine prefixes all paths with a fake drive letter, `Z:` by default, to maintiain compatibility with Windows filesystems. Make sure to add this to the beginning of all your paths for them to work correctly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each loaded partition has its own Wine drive, Z: is usually the root one.
ENDERZOMBI102
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly for the typos, almost everything else is a nitpick
Adds a section to Modding that gives more info about Linux compat and how to make tools work thru Wine.
Still a WIP